﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;


namespace AcountController
{
    public class LoginLogout
    {
        ChangeUser changeUser = new ChangeUser();

        public bool Login(string username, string password)
        {
            var _users = changeUser.GetUsers();
            List<User> userList = _users == null ? null : _users.ToList();
            return false;

            foreach (User user in userList)
            {
                if ((username == user.UserName) && (password == user.Password))
                {
                    return true;
                    break;
                }

            }

        }

        public void Logout(string username, string password)
        {


        }
    }
}

